package com.bt.table.ppt;

/**
 * Ret_bill_infoId entity. @author MyEclipse Persistence Tools
 */

public class Ret_bill_infoId implements java.io.Serializable {

	// Fields

	private String bill_no;
	private String box_id_fk;
	private String pallet_id_fk;
	private String batch_no_fk;

	// Constructors

	/** default constructor */
	public Ret_bill_infoId() {
	}

	/** full constructor */
	public Ret_bill_infoId(String bill_no, String box_id_fk,
			String pallet_id_fk, String batch_no_fk) {
		this.bill_no = bill_no;
		this.box_id_fk = box_id_fk;
		this.pallet_id_fk = pallet_id_fk;
		this.batch_no_fk = batch_no_fk;
	}

	// Property accessors

	public String getBill_no() {
		return this.bill_no;
	}

	public void setBill_no(String bill_no) {
		this.bill_no = bill_no;
	}

	public String getBox_id_fk() {
		return this.box_id_fk;
	}

	public void setBox_id_fk(String box_id_fk) {
		this.box_id_fk = box_id_fk;
	}

	public String getPallet_id_fk() {
		return this.pallet_id_fk;
	}

	public void setPallet_id_fk(String pallet_id_fk) {
		this.pallet_id_fk = pallet_id_fk;
	}

	public String getBatch_no_fk() {
		return this.batch_no_fk;
	}

	public void setBatch_no_fk(String batch_no_fk) {
		this.batch_no_fk = batch_no_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_bill_infoId))
			return false;
		Ret_bill_infoId castOther = (Ret_bill_infoId) other;

		return ((this.getBill_no() == castOther.getBill_no()) || (this
				.getBill_no() != null && castOther.getBill_no() != null && this
				.getBill_no().equals(castOther.getBill_no())))
				&& ((this.getBox_id_fk() == castOther.getBox_id_fk()) || (this
						.getBox_id_fk() != null
						&& castOther.getBox_id_fk() != null && this
						.getBox_id_fk().equals(castOther.getBox_id_fk())))
				&& ((this.getPallet_id_fk() == castOther.getPallet_id_fk()) || (this
						.getPallet_id_fk() != null
						&& castOther.getPallet_id_fk() != null && this
						.getPallet_id_fk().equals(castOther.getPallet_id_fk())))
				&& ((this.getBatch_no_fk() == castOther.getBatch_no_fk()) || (this
						.getBatch_no_fk() != null
						&& castOther.getBatch_no_fk() != null && this
						.getBatch_no_fk().equals(castOther.getBatch_no_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBill_no() == null ? 0 : this.getBill_no().hashCode());
		result = 37 * result
				+ (getBox_id_fk() == null ? 0 : this.getBox_id_fk().hashCode());
		result = 37
				* result
				+ (getPallet_id_fk() == null ? 0 : this.getPallet_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getBatch_no_fk() == null ? 0 : this.getBatch_no_fk()
						.hashCode());
		return result;
	}

}